﻿#region Legal notice
/*
 * This file is part of EPPLib.
 * Copyright 2010, 2011 
 * Gianluca Esposito (info@gianlucaesposito.it)
 * ----------------------------------------------------------------------------
 * EPPLib is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 * 
 * EPPLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with Nome-Programma; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EPPLib.Data
{
    public class TransactionLogDataObject : BaseDataObject
    {
        #region Members
        private int _internalID;
        private Guid _ownerID;
        private string _session;
        private string _targetUrl;
        private string _serverTransactionID;
        private string _clientTransactionID;
        private string _requestRawData;
        private string _responseRawData;
        private DateTime _transactionDate;
        #endregion

        #region Properties
        public int InternalID { get { return _internalID; } set { _internalID = value; } }
        public Guid OwnerID { get { return _ownerID; } set { _ownerID = value; } }
        public string Session { get { return _session; } set { _session = value; } }
        public string TargetUrl { get { return _targetUrl; } set { _targetUrl = value; } }
        public string ServerTransactionID { get { return _serverTransactionID; } set { _serverTransactionID = value; } }
        public string ClientTransactionID { get { return _clientTransactionID; } set { _clientTransactionID = value; } }
        public string RequestRawData { get { return _requestRawData; } set { _requestRawData = value; } }
        public string ResponseRawData { get { return _responseRawData; } set { _responseRawData = value; } }
        public DateTime TransactionDate { get { return _transactionDate; } set { _transactionDate = value; } }
        #endregion

        #region Constructor(s)
        public TransactionLogDataObject()
        {
            _internalID = 0;
            _ownerID = Guid.Empty;
            _session = string.Empty;
            _targetUrl = string.Empty;
            _serverTransactionID = string.Empty;
            _clientTransactionID = string.Empty;
            _requestRawData = string.Empty;
            _responseRawData = string.Empty;
            _transactionDate = DateTime.Now;
        }
        #endregion
    }
}
